package com.bristua.barcode.customer.controller;

import com.bristua.barcode.common.bean.Result;
import com.bristua.barcode.common.util.HandleResultUtil;
import com.bristua.barcode.customer.biz.ApplyCashTakeBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/8/26.
 */
@RestController
public class ApplyCashTakeController {

    @Autowired
    private ApplyCashTakeBiz applyCashTakeBiz;

    @PostMapping(value = "/customer/applay/take/{bankId}/{takeCash}/{pwd}")
    public Result applyCashTake(@PathVariable(value = "bankId") String bankId, @PathVariable(value = "takeCash") String takeCash,@PathVariable(value = "pwd") String pwd){
        applyCashTakeBiz.applyCashTake(takeCash,bankId,pwd);
        return HandleResultUtil.submitSuccessResult();
    }
}
